package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class TaxRateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public TaxRateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public TaxRateExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public TaxRateExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        TaxRateExample example = new TaxRateExample();
        return example.createCriteria();
    }

    public TaxRateExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public TaxRateExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public TaxRateExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public TaxRateExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public TaxRateExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTaxRateIdIsNull() {
            addCriterion("taxrate.TaxRateId is null");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdIsNotNull() {
            addCriterion("taxrate.TaxRateId is not null");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdEqualTo(Integer value) {
            addCriterion("taxrate.TaxRateId =", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRateId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdNotEqualTo(Integer value) {
            addCriterion("taxrate.TaxRateId <>", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRateId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdGreaterThan(Integer value) {
            addCriterion("taxrate.TaxRateId >", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRateId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("taxrate.TaxRateId >=", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRateId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdLessThan(Integer value) {
            addCriterion("taxrate.TaxRateId <", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRateId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdLessThanOrEqualTo(Integer value) {
            addCriterion("taxrate.TaxRateId <=", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRateId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdIn(List<Integer> values) {
            addCriterion("taxrate.TaxRateId in", values, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdNotIn(List<Integer> values) {
            addCriterion("taxrate.TaxRateId not in", values, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdBetween(Integer value1, Integer value2) {
            addCriterion("taxrate.TaxRateId between", value1, value2, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdNotBetween(Integer value1, Integer value2) {
            addCriterion("taxrate.TaxRateId not between", value1, value2, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdIsNull() {
            addCriterion("taxrate.LastTaxRateId is null");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdIsNotNull() {
            addCriterion("taxrate.LastTaxRateId is not null");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdEqualTo(Integer value) {
            addCriterion("taxrate.LastTaxRateId =", value, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.LastTaxRateId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdNotEqualTo(Integer value) {
            addCriterion("taxrate.LastTaxRateId <>", value, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.LastTaxRateId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdGreaterThan(Integer value) {
            addCriterion("taxrate.LastTaxRateId >", value, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.LastTaxRateId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("taxrate.LastTaxRateId >=", value, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.LastTaxRateId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdLessThan(Integer value) {
            addCriterion("taxrate.LastTaxRateId <", value, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.LastTaxRateId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdLessThanOrEqualTo(Integer value) {
            addCriterion("taxrate.LastTaxRateId <=", value, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.LastTaxRateId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdIn(List<Integer> values) {
            addCriterion("taxrate.LastTaxRateId in", values, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdNotIn(List<Integer> values) {
            addCriterion("taxrate.LastTaxRateId not in", values, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdBetween(Integer value1, Integer value2) {
            addCriterion("taxrate.LastTaxRateId between", value1, value2, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLastTaxRateIdNotBetween(Integer value1, Integer value2) {
            addCriterion("taxrate.LastTaxRateId not between", value1, value2, "lastTaxRateId");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("taxrate.`Level` is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("taxrate.`Level` is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(Integer value) {
            addCriterion("taxrate.`Level` =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Level` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(Integer value) {
            addCriterion("taxrate.`Level` <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Level` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(Integer value) {
            addCriterion("taxrate.`Level` >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Level` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("taxrate.`Level` >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Level` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(Integer value) {
            addCriterion("taxrate.`Level` <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Level` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(Integer value) {
            addCriterion("taxrate.`Level` <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Level` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<Integer> values) {
            addCriterion("taxrate.`Level` in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<Integer> values) {
            addCriterion("taxrate.`Level` not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(Integer value1, Integer value2) {
            addCriterion("taxrate.`Level` between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("taxrate.`Level` not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("taxrate.`Type` is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("taxrate.`Type` is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("taxrate.`Type` =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Type` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("taxrate.`Type` <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Type` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("taxrate.`Type` >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Type` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("taxrate.`Type` >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Type` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("taxrate.`Type` <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Type` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("taxrate.`Type` <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Type` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("taxrate.`Type` in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("taxrate.`Type` not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("taxrate.`Type` between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("taxrate.`Type` not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTaxNoIsNull() {
            addCriterion("taxrate.TaxNo is null");
            return (Criteria) this;
        }

        public Criteria andTaxNoIsNotNull() {
            addCriterion("taxrate.TaxNo is not null");
            return (Criteria) this;
        }

        public Criteria andTaxNoEqualTo(String value) {
            addCriterion("taxrate.TaxNo =", value, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxNo = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxNoNotEqualTo(String value) {
            addCriterion("taxrate.TaxNo <>", value, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxNo <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxNoGreaterThan(String value) {
            addCriterion("taxrate.TaxNo >", value, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxNo > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxNoGreaterThanOrEqualTo(String value) {
            addCriterion("taxrate.TaxNo >=", value, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxNo >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxNoLessThan(String value) {
            addCriterion("taxrate.TaxNo <", value, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxNo < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxNoLessThanOrEqualTo(String value) {
            addCriterion("taxrate.TaxNo <=", value, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxNo <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxNoLike(String value) {
            addCriterion("taxrate.TaxNo like", value, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoNotLike(String value) {
            addCriterion("taxrate.TaxNo not like", value, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoIn(List<String> values) {
            addCriterion("taxrate.TaxNo in", values, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoNotIn(List<String> values) {
            addCriterion("taxrate.TaxNo not in", values, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoBetween(String value1, String value2) {
            addCriterion("taxrate.TaxNo between", value1, value2, "taxNo");
            return (Criteria) this;
        }

        public Criteria andTaxNoNotBetween(String value1, String value2) {
            addCriterion("taxrate.TaxNo not between", value1, value2, "taxNo");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("taxrate.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("taxrate.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("taxrate.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("taxrate.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("taxrate.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("taxrate.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("taxrate.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("taxrate.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("taxrate.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("taxrate.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("taxrate.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("taxrate.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("taxrate.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("taxrate.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andUnitIsNull() {
            addCriterion("taxrate.Unit is null");
            return (Criteria) this;
        }

        public Criteria andUnitIsNotNull() {
            addCriterion("taxrate.Unit is not null");
            return (Criteria) this;
        }

        public Criteria andUnitEqualTo(String value) {
            addCriterion("taxrate.Unit =", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Unit = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUnitNotEqualTo(String value) {
            addCriterion("taxrate.Unit <>", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Unit <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThan(String value) {
            addCriterion("taxrate.Unit >", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Unit > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThanOrEqualTo(String value) {
            addCriterion("taxrate.Unit >=", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Unit >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUnitLessThan(String value) {
            addCriterion("taxrate.Unit <", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Unit < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUnitLessThanOrEqualTo(String value) {
            addCriterion("taxrate.Unit <=", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Unit <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUnitLike(String value) {
            addCriterion("taxrate.Unit like", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotLike(String value) {
            addCriterion("taxrate.Unit not like", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitIn(List<String> values) {
            addCriterion("taxrate.Unit in", values, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotIn(List<String> values) {
            addCriterion("taxrate.Unit not in", values, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitBetween(String value1, String value2) {
            addCriterion("taxrate.Unit between", value1, value2, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotBetween(String value1, String value2) {
            addCriterion("taxrate.Unit not between", value1, value2, "unit");
            return (Criteria) this;
        }

        public Criteria andTaxPriceIsNull() {
            addCriterion("taxrate.TaxPrice is null");
            return (Criteria) this;
        }

        public Criteria andTaxPriceIsNotNull() {
            addCriterion("taxrate.TaxPrice is not null");
            return (Criteria) this;
        }

        public Criteria andTaxPriceEqualTo(BigDecimal value) {
            addCriterion("taxrate.TaxPrice =", value, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxPriceNotEqualTo(BigDecimal value) {
            addCriterion("taxrate.TaxPrice <>", value, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxPriceGreaterThan(BigDecimal value) {
            addCriterion("taxrate.TaxPrice >", value, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("taxrate.TaxPrice >=", value, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxPriceLessThan(BigDecimal value) {
            addCriterion("taxrate.TaxPrice <", value, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("taxrate.TaxPrice <=", value, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxPriceIn(List<BigDecimal> values) {
            addCriterion("taxrate.TaxPrice in", values, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceNotIn(List<BigDecimal> values) {
            addCriterion("taxrate.TaxPrice not in", values, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("taxrate.TaxPrice between", value1, value2, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("taxrate.TaxPrice not between", value1, value2, "taxPrice");
            return (Criteria) this;
        }

        public Criteria andTaxRateIsNull() {
            addCriterion("taxrate.TaxRate is null");
            return (Criteria) this;
        }

        public Criteria andTaxRateIsNotNull() {
            addCriterion("taxrate.TaxRate is not null");
            return (Criteria) this;
        }

        public Criteria andTaxRateEqualTo(BigDecimal value) {
            addCriterion("taxrate.TaxRate =", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateNotEqualTo(BigDecimal value) {
            addCriterion("taxrate.TaxRate <>", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThan(BigDecimal value) {
            addCriterion("taxrate.TaxRate >", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("taxrate.TaxRate >=", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThan(BigDecimal value) {
            addCriterion("taxrate.TaxRate <", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("taxrate.TaxRate <=", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.TaxRate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIn(List<BigDecimal> values) {
            addCriterion("taxrate.TaxRate in", values, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotIn(List<BigDecimal> values) {
            addCriterion("taxrate.TaxRate not in", values, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("taxrate.TaxRate between", value1, value2, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("taxrate.TaxRate not between", value1, value2, "taxRate");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("taxrate.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("taxrate.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("taxrate.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("taxrate.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("taxrate.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("taxrate.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("taxrate.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("taxrate.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("taxrate.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("taxrate.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("taxrate.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("taxrate.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("taxrate.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("taxrate.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("taxrate.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("taxrate.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("taxrate.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("taxrate.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("taxrate.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("taxrate.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("taxrate.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("taxrate.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("taxrate.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("taxrate.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("taxrate.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("taxrate.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("taxrate.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("taxrate.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("taxrate.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("taxrate.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("taxrate.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("taxrate.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("taxrate.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("taxrate.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("taxrate.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("taxrate.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("taxrate.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("taxrate.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("taxrate.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("taxrate.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("taxrate.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("taxrate.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("taxrate.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("taxrate.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("taxrate.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("taxrate.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("taxrate.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("taxrate.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("taxrate.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("taxrate.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("taxrate.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("taxrate.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("taxrate.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("taxrate.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("taxrate.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("taxrate.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("taxrate.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("taxrate.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("taxrate.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("taxrate.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(TaxRate.Column column) {
            addCriterion(new StringBuilder("taxrate.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("taxrate.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("taxrate.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("taxrate.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("taxrate.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private TaxRateExample example;

        protected Criteria(TaxRateExample example) {
            super();
            this.example = example;
        }

        public TaxRateExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(TaxRate.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(TaxRate.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.chinadutyfree.retailer.entity.TaxRateExample example);
    }
}